package com.yq.day18._05objectapi._01tostring;

/**
 * @author 3307235355@qq.com
 * @since 2022/06/18 20:59
 */
public class Demo01 {
    private int a;
     private int b;
    public static void main(String[] args) {
        Demo01 d1 = new Demo01();
        System.out.println(d1.toString());
        System.out.println(d1.getClass().getName());

    }

    @Override
    public String toString() {
        return "Demo01{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }
}
